package com.gmail.hongyz.myfuse.service.impl;

import java.util.List;

import com.gmail.hongyz.myfuse.common.PageObject;
import com.gmail.hongyz.myfuse.dao.UserDao;
import com.gmail.hongyz.myfuse.model.User;
import com.gmail.hongyz.myfuse.service.UserService;

public class UserServiceImpl extends BaseServiceImpl implements UserService {
	
	private UserDao userDao;

	public User getUser(String id) {
		return userDao.getUser(id);
	}

	public User getUserByUserId(String userId) {
		return userDao.getUserByUserId(userId);
	}

	public void removeUser(String id) {
		userDao.removeUser(id);
	}

	public void saveUser(User user) {
		userDao.saveUser(user);
	}

	public void setUserDao(UserDao userDao) {
		this.userDao = userDao;
	}

	public List<User> getUsers(PageObject pageObject) {
		return userDao.getUsers(pageObject);
	}

}
